<div *ngIf="data" class='dib'>
    <p-tree [value]="data" selectionMode="{{selectType}}" (onNodeSelect)="nodeSelect($event)" (onNodeUnselect)="nodeUnselect($event)" (onNodeExpand)="expandToNode($event)" (onNodeCollapse)="collapseToNode($event)" [contextMenu]="test" [(selection)]="selection"></p-tree>
    <!--<div *ngIf='isRightMenu'>
            <p-contextMenu #test [model]="menulist"></p-contextMenu>
        </div>-->
</div>